﻿@model Dictionary<string, List<shenkong.Models.RepairRecord>>


@{
    ViewData["Title"] = "Index";
}


<link href="~/css/bgHome_index.css" rel="stylesheet" />
<form id="form1" runat="server">
    <div class="row">
        <div class="top">
            <img src="/images/logo.png" />
            <text>SDMS</text>
        </div>
        <div class="nav flex-column nav-pills" id="v-pills-tab" role="tablist" aria-orientation="vertical">
            <a class="nav-link " id="home" data-toggle="pill" href="#" role="tab" aria-selected="true">首页</a>
            <a class="nav-link " id="building" href="/Buildings">
                <text class="iconfont icon-24gf-building2"></text>
                楼栋管理
            </a>
            <a class="nav-link active  " href="/RepairRecords">
                <text class="iconfont icon-home"></text>
                宿舍报修管理
            </a>
            <a class="nav-link" href="/Students">
                <text class="iconfont icon-w_xuesheng-"></text>
                学生信息管理
            </a>
            <a class="nav-link" id="worker" href="#">
                <text class="iconfont icon-renyuan"></text>
                宿舍职员管理
            </a>
            <a class="nav-link" href="#">
                <text class="iconfont icon-shuidianmei"></text>
                宿舍水电管理
            </a>
            <a class="nav-link" href="#">
                <text class="iconfont icon-baoxiu-xuanzhong"></text>
                宿舍信息管理
            </a>
            <a class="nav-link" id="warn" href="#">
                <text class="iconfont icon--zongjiandengji"></text>
                宿舍违纪管理
            </a>
            <a class="nav-link" href="#">
                <text class="iconfont icon-kehufangwen"></text>
                宿舍访问管理
            </a>

        </div>
    </div>
    <div class="main">
       
<h1>报修列表</h1>

@*<p>
    <a asp-action="Create">Create New</a>
</p>*@
<h2>未处理</h2>
<table class="table">
    <thead>
        <tr>
            <th>
                申请时间
            </th>
            <th>
                宿舍号
            </th>
            <th>
                负责人员
            </th>
            <th>
                问题描述
            </th>
            <th>
                联系电话
            </th>
            <th>
                维修进度
            </th>
            <th>
                报修类型
            </th>
            <th>
                预约时间
            </th>
            <th>
                申请人
            </th>
            <th></th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model["NullStatus"])
        {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.ApplyDate)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.DormId)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.WorkId)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.RepairProblem)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Tel)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Zhuangtai)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.RepairClass)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.FreeTime)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Replyer)
            </td>
            <td>
                <a asp-action="Edit" asp-route-id="@item.RepairId">编辑</a> |
                <a asp-action="Details" asp-route-id="@item.RepairId">细节</a> 
            </td>
        </tr>
}
    </tbody>
</table>


<h2>已受理（未结束）</h2>
<table class="table">
    <thead>
        <tr>
            <th>
                申请时间
            </th>
            <th>
                宿舍号
            </th>
            <th>
                负责人员
            </th>
            <th>
                问题描述
            </th>
            <th>
                联系电话
            </th>
            <th>
                维修进度
            </th>
            <th>
                报修类型
            </th>
            <th>
                预约时间
            </th>
            <th>
                申请人
            </th>
            <th></th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model["OtherStatus"])
        {
            <tr>
                <td>
                    @Html.DisplayFor(modelItem => item.ApplyDate)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.DormId)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.WorkId)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.RepairProblem)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Tel)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Zhuangtai)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.RepairClass)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.FreeTime)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Replyer)
                </td>
                <td>
                    <a asp-action="Edit" asp-route-id="@item.RepairId">编辑</a> |
                    <a asp-action="Details" asp-route-id="@item.RepairId">细节</a>
                </td>
            </tr>
        }
    </tbody>
</table>

    </div>
    

</form>






























@*
<h1>报修列表</h1>

@*<p>
    <a asp-action="Create">Create New</a>
</p>
<h2>未处理</h2>
<table class="table">
    <thead>
        <tr>
            <th>
                申请时间
            </th>
            <th>
                宿舍号
            </th>
            <th>
                负责人员
            </th>
            <th>
                问题描述
            </th>
            <th>
                联系电话
            </th>
            <th>
                维修进度
            </th>
            <th>
                报修类型
            </th>
            <th>
                预约时间
            </th>
            <th>
                申请人
            </th>
            <th></th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model["NullStatus"])
        {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.ApplyDate)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.DormId)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.WorkId)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.RepairProblem)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Tel)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Zhuangtai)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.RepairClass)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.FreeTime)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Replyer)
            </td>
            <td>
                <a asp-action="Edit" asp-route-id="@item.RepairId">编辑</a> |
                <a asp-action="Details" asp-route-id="@item.RepairId">细节</a> 
            </td>
        </tr>
}
    </tbody>
</table>


<h2>已受理（未结束）</h2>
<table class="table">
    <thead>
        <tr>
            <th>
                申请时间
            </th>
            <th>
                宿舍号
            </th>
            <th>
                负责人员
            </th>
            <th>
                问题描述
            </th>
            <th>
                联系电话
            </th>
            <th>
                维修进度
            </th>
            <th>
                报修类型
            </th>
            <th>
                预约时间
            </th>
            <th>
                申请人
            </th>
            <th></th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model["OtherStatus"])
        {
            <tr>
                <td>
                    @Html.DisplayFor(modelItem => item.ApplyDate)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.DormId)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.WorkId)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.RepairProblem)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Tel)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Zhuangtai)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.RepairClass)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.FreeTime)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Replyer)
                </td>
                <td>
                    <a asp-action="Edit" asp-route-id="@item.RepairId">编辑</a> |
                    <a asp-action="Details" asp-route-id="@item.RepairId">细节</a>
                </td>
            </tr>
        }
    </tbody>
</table>
*@